﻿function getSelectItem(val, obj) {
    obj.find("option").remove();
    $.ajax({
        url: '/Area/selectcity/' + val,
        type: 'POST',
        dataType: 'json',
        contentType: 'application/json; charset=utf-8',
        success: function (json) {
            if (json) {
                $.each(json.Cities, function (i, item) {
                    obj.append("<option value=" + item.Value + ">" + item.Text + "</option>");
                });
            }
        },
        error: function () {
        }
    });
}

function getAreaValue(id, val)
{
    $( "#" + id).val(val);
}      
